<?php
	include_once('header.php');
	include_once('menu.php');
	include_once('content.php');
?>

<h3>Import</h3>

<?php 
	if(isset($error)) echo $error;
	
	echo form_open_multipart('import_export/do_upload', array('class'=>'jNice'));
	echo form_fieldset()
?>

<input type="file" name="userfile" size="20" />

<p><input type="submit" value="Nahrať súbor" /></p>
<?php
echo form_fieldset_close(); 
?>
</form>

<h3>Export</h3>

<?php
	echo anchor('import_export/export', 'Exportovať databázu');
	echo form_open('import_export/export_excel', array('class'=>'jNice'));
	echo form_fieldset();
	$options = array(
				  '' => '',
                  'pricestovani'  => 'Pricestovaní',
                  'odcestovani'    => 'Odcestovaní',
                  'people'   => 'Ľudia'
                );
	echo form_label('Export vo formate pre microsoft excel');
	echo form_dropdown('table_name', $options, '');
	echo form_submit('export', 'Export');
	echo form_fieldset_close(); 
	echo form_close();
?>

<?php
	include_once('footer.php');
?>